﻿#include "../../lv_examples.h"
#if LV_USE_SPINNER && LV_BUILD_EXAMPLES

void lv_example_spinner_1(void)
{
    /*Create a spinner*/
    lv_obj_t* g_set_obj1 = lv_tileview_create(lv_scr_act());
    lv_obj_set_style_bg_color(g_set_obj1, lv_color_make(0, 0, 0), 0);//设置背景颜色为黑
    lv_obj_set_scrollbar_mode(g_set_obj1, LV_SCROLLBAR_MODE_OFF);  //取消滚动条显	
    lv_obj_t* spinner = lv_spinner_create(g_set_obj1, 1000, 90);
    lv_obj_set_size(spinner, 200, 200);

    lv_obj_set_style_arc_color(spinner, lv_color_make(15, 15, 15), LV_PART_MAIN); 	// 设置背景弧在默认状态下的颜色
    lv_obj_set_style_arc_color(spinner, lv_color_make(0xff,0xff,0xff), LV_PART_INDICATOR); 	// 设置指示弧在默认状态下的颜色
    lv_obj_center(spinner);
}

#endif
